﻿@using ABC.Controllers.ViewModels
@model BaseViewModel
<div class="subnavbar">
    <div class="subnavbar-inner">
        <div class="container">
            <ul class="mainnav">
                <li class="@(Model.CurrentControllerName == "my" || Model.CurrentControllerName == "news" || (Model.CurrentControllerName == "information" && ( Model.CurrentActionName == "contact" ||  Model.CurrentActionName == "feed" ||  Model.CurrentActionName == "messages" ||  Model.CurrentActionName == "ratings")) ? "active" : string.Empty)"><a href="@Url.Action("Index", "My")"><i class="icon-dashboard"></i><span>Пуск</span></a></li>          
                <li class="@(Model.CurrentControllerName == "cabinet" || Model.CurrentControllerName == "bso" || Model.CurrentControllerName == "services" || Model.CurrentControllerName == "background" || Model.CurrentActionName == "kasko" || Model.CurrentActionName == "kaskoexpress" || Model.CurrentActionName == "osago"? "active" : string.Empty)"><a href="@Url.Action("Index", "Cabinet", new { area = "My" })"><i class="icon-inbox"></i><span>Кабинет</span> </a></li>
                <li class="@(Model.CurrentControllerName == "clients" ? "active" : string.Empty)"><a href="@Url.Action("Index", "Clients", new { area = "My", page = 1 })"><i class="icon-briefcase"></i><span>Клиенты</span> </a></li>
                <li class="@(Model.CurrentControllerName == "admin" && Model.CurrentActionName == "partners" ? "active" : string.Empty)"><a href="@Url.Action("Partners", "Admin", new { area = "My", page = 1 })"><i class="icon-user"></i><span>Партнеры</span> </a></li>
                <li class="@(Model.CurrentControllerName == "education" ? "active" : string.Empty)"><a href="@Url.Action("Index", "Education")"><i class="icon-book"></i><span>Обучение</span> </a></li>
                <li class="@(Model.CurrentControllerName == "community" ? "active" : string.Empty)"><a href="@Url.Action("Index", "Community")"><i class="icon-comments"></i><span>Сообщество</span> </a></li>
           </ul>
        </div>
    </div>
</div>